package com.drug.service;

import com.drug.domain.Result;
import com.drug.domain.UserR;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface UserService {
    /**
     * 登录
     * @param map
     * @return
     */
    Result login(Map map, HttpServletRequest request);

    /**
     * 注册
     * @param user
     */
    Result registerUser(UserR user);

    Result findUsername(String val);
}
